home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
MPW_TOOL
/
TOOLS
/
TOOLS_WI
/
PERL
/
OS2
/
MKTEMP.C
< prev
next >
Wrap
Text File
|
1992-01-04
|
412b
|
29 lines
/* MKTEMP.C using TMP environment variable */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
void Mktemp(char *file)
{
char fname[32], *tmp;
tmp = getenv("TMP");
if ( tmp != NULL )
{
strcpy(fname, file);
strcpy(file, tmp);
if ( file[strlen(file) - 1] != '\\' )
strcat(file, "\\");
strcat(file, fname);
}
mktemp(file);
}
/* End of MKTEMP.C */